const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: "0.0.0.0",
    port: 8000, // 端口号
    open: true, // 配置自动启动浏览器
    client: {
      overlay: {
        runtimeErrors: false,
      },
    },
    proxy: {
      "/crossApi": {
        target: "https://ban.suisnap.cn",
        changeOrigin: true,
        pathRewrite: {
          "^/crossApi": "",
        },
      },
    },
  },
});
